package com.ruoyi.system.domain;

import java.math.BigDecimal;
import java.util.Date;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 物料主数据对象 md_material
 * 
 * @author ruoyi
 * @date 2025-06-22
 */
public class MdMaterial extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private String id;

    /** 工厂代码 */
    @Excel(name = "工厂代码", dictType = "plant")
    private String plantCode;

    /** 物料号 */
    @Excel(name = "物料号")
    private String materialCode;

    /** 物料描述 */
    @Excel(name = "物料描述")
    private String materialDesc;

    /** 物料类型 */
    @Excel(name = "物料类型", dictType = "material_type")
    private String materialType;

    /** 库存量 */
    @Excel(name = "库存量")
    private BigDecimal inStock;

    /** 删除标志(0正常 1删除) */
    private String delFlag;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setPlantCode(String plantCode) 
    {
        this.plantCode = plantCode;
    }

    public String getPlantCode() 
    {
        return plantCode;
    }
    public void setMaterialCode(String materialCode) 
    {
        this.materialCode = materialCode;
    }

    public String getMaterialCode() 
    {
        return materialCode;
    }
    public void setMaterialDesc(String materialDesc) 
    {
        this.materialDesc = materialDesc;
    }

    public String getMaterialDesc() 
    {
        return materialDesc;
    }
    public void setMaterialType(String materialType) 
    {
        this.materialType = materialType;
    }

    public String getMaterialType() 
    {
        return materialType;
    }
    public void setInStock(BigDecimal inStock) 
    {
        this.inStock = inStock;
    }

    public BigDecimal getInStock() 
    {
        return inStock;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("plantCode", getPlantCode())
            .append("materialCode", getMaterialCode())
            .append("materialDesc", getMaterialDesc())
            .append("materialType", getMaterialType())
            .append("inStock", getInStock())
            .append("createTime", getCreateTime())
            .append("createBy", getCreateBy())
            .append("updateTime", getUpdateTime())
            .append("updateBy", getUpdateBy())
            .append("remark", getRemark())
            .append("delFlag", getDelFlag())
            .toString();
    }
} 